package com.zhangfb95.crosschain.console;

import com.zhangfb95.crosschain.console.service.ConsoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zhangfubing
 * @since 2023/12/20
 */
@SpringBootApplication(scanBasePackages = "com.zhangfb95.crosschain")
@Slf4j
public class App {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        ConsoleService consoleService = context.getBean(ConsoleService.class);
        consoleService.start();
    }
}